#ifndef _CANARY2_HTTP_VERSIONS_H_
#define _CANARY2_HTTP_VERSIONS_H_

#include <string_view>

namespace wilson::http
{
    enum class version : uint8_t
    {
        HTTP_1_0 = (1U << 0),
        HTTP_1_1 = (1U << 1),
        HTTP_2   = (1U << 2),
        INVALID_VERSION,
    };

    ::std::string_view to_string(version v);
    version to_version(::std::string_view str);
    version to_version(uint8_t major, uint8_t minor);
}

#endif
